var React = require('react');

export default class User extends React.Component {
    render() {
        const { user } = this.props;
        console.log(this.props);
        return (
            <div > 
                <div>姓名:{user.username}</div>
                <div>年龄:{user.age}</div>
                <div>性别:{user.gender}</div>
                <hr />
            </div>)
    }
}